<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'menu-model-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'label'); ?>
		<?php echo $form->textField($model,'label',array('size'=>40,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'label'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'menu_url'); ?>
		<?php echo $form->textField($model,'menu_url',array('size'=>40,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'menu_url'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'menu_group'); ?>
		<?php echo $form->dropDownList($model, 'menu_group', Common::getOptionValue('menugroup')); ?>
		<?php echo $form->error($model,'menu_group'); ?>
	</div>

                  <div class="row">
		<?php echo $form->labelEx($model,'parent_id'); ?>
		<?php echo $form->dropDownList($model, 'parent_id',CHtml::listData(MenuModel::model()->findAll(),'id','label'), array('prompt'=>'No Parent')); ?>
		<?php echo $form->error($model,'parent_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'is_login'); ?>
		<?php echo $form->dropDownList($model, 'is_login', Common::getOptionValue('usermenuaccess')); ?>
		<?php echo $form->error($model,'is_login'); ?>
	</div>
                <div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>39)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->